package com.jeomo.sys.starter.service;

import com.jeomo.base.starter.service.IBaseService;
import com.jeomo.sys.starter.entity.Role;

import java.util.List;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author jeomo
 * @since 2019-03-22
 */
public interface IRoleService extends IBaseService<Role> {

    List<Role> listGroup(String topCode);

    /**
     * 保存角色权限
     * @param roleCode
     * @param permissions
     */
    boolean savePermissions(String roleCode, List<String> permissions);

    List<Role> selectByUserCode(String userCode);

    int deleteByUserCode(String userCode);
}
